Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-syntax-class-static-block

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-class-static-block

Allow parsing of class static blocks

  • 7.14.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19M
decreased by-5.23%
Maintainers
6
Weekly downloads
 
Created

What is @babel/plugin-syntax-class-static-block?

The @babel/plugin-syntax-class-static-block npm package allows Babel to parse static blocks within class bodies. Static blocks provide a way to perform additional static initialization during class definition evaluation. This can be useful for a variety of tasks such as setting up resources, performing checks, or configuring implementations that are shared across all instances of a class.

What are @babel/plugin-syntax-class-static-block's main functionalities?

Static Block Syntax Support

Enables parsing of static blocks within classes, allowing for static initialization code that runs when the class is defined.

class MyClass {
  static {
    // Initialization code
    console.log('Static block in MyClass');
  }
}

Other packages similar to @babel/plugin-syntax-class-static-block

Keywords

FAQs

Package last updated on 09 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc